<%@ page language="java" isELIgnored="false"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>

<head>
<!-- 这里引入导航信息header.tpl -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>标准理财产品模板${operType == 'update' ? '修改' : '新增' }</title>
</head>

<body class="sub-page">

	<jsp:include page="/WEB-INF/jsp/system/index/homeHead.jsp">
		<jsp:param name="currentActive" value="cpcs" />
	</jsp:include>
	
	<div class="location">
		<i class="fas fa-home"></i>
		<p>您现在的位置：主页</p>
		<p class="current">&gt;产品创设</p>
		<p class="current">&gt;标准理财产品模板</p>
		<p class="current">&gt;${operType == 'update' ? '修改' : '新增' }</p>
	</div>
	<div class="container">
		<div class="page-content">
			<form id="addForm" role="form" class="form-horizontal" method="post" action="<%=context%>business/prdSetup/standardPrjTemplate/save.do">
			<input type="hidden" id="id" name="id" value="${prdTemplateVo.id }"/>
			<div class="page-header">
				<h2 class="page-title">标准理财产品模板导入</h2>
			</div>
			<div class="page-body">
				<div class="form-group">
				  <label class="col-sm-2 control-label">模板名称<span class="text-danger">*</span></label>
				  <div class="col-sm-10 form-inner">
				    <input type="text" placeholder="请输入模板名称" class="form-control" name="templateName" id="templateName" value="${prdTemplateVo.templateName }" />
				  </div>
				</div>
				<div class="form-group">
				  <label class="col-sm-2 control-label">产品业务类型<span class="text-danger">*</span></label>
				  <div class="col-sm-10 form-inner">
				    <select class="select2" id="prdBizType" name="prdBizType">
				    	<option value=""></option>
				    	<wasp:dictOptions dctRootType="PRD_BIZ_TYPE" initValue="${prdTemplateVo.prdBizType }"></wasp:dictOptions>
				    </select>
				  </div>
				</div>
				<div class="form-group">
				  <label class="col-sm-2 control-label">产品分类<span class="text-danger">*</span></label>
				  <div class="col-sm-10 form-inner">
				    <select class="select2" id="prdCategory" name="prdCategory">
				    	<option value=""></option>
				    	<wasp:dictOptions dctRootType="PRD_CATEGORY" initValue="${prdTemplateVo.prdCategory }"></wasp:dictOptions>
				    </select>
				  </div>
				</div>
				<div class="form-group">
				  <label class="col-sm-2 control-label">备注</label>
				  <div class="col-sm-10 form-inner">
				    <textarea rows="3" class="form-control" name="remark">${prdTemplateVo.remark }</textarea>
				  </div>
				</div>
			
				<div class="model">
					<div class="model-head">
						<span class="head-boder-left"></span>
						<h2>附件</h2>
					</div>
					<div class="model-content clear">
						<jsp:include page="/WEB-INF/jsp/system/sys/attach/attachView.jsp">
							<jsp:param name="attachList" value="${attachList}"/>
							<jsp:param name="resourceId" value=""/>
							<jsp:param name="module" value="prdTemplateAddView" />
							<jsp:param name="hasPermission" value="archiveManagementAdd" />
							<jsp:param name="resourceSign" value="STANDARD_PRD_TEMPLATE"/>
							<jsp:param name="hidAttIdField"  value="{{attId}}"/>
						</jsp:include> 
					</div>
				</div>
			</div>
			<div class="page-footer">
				<button type="button" class="btn btn-primary btn-save btn-loading btn-w-xs" data-loading-text="<i class='ico-loading'></i>" onclick="WASP_PRD_TEMPLATE.submitAddForm();">提交</button>
				<button type="button" class="btn btn-link btn-w-xs" onclick="window.close();">取消</button>
			</div>
			
			</form>
		</div>
	</div>
	
<script type="text/javascript" src="<%=context%>resources/modules/business/prdSetup/standardPrjTemplate/standardPrjTemplateAdd.js?r=<%=Math.random()%>"></script>
</body>
</html>